package cn.com.dhcc.adam.spring.dependency;

public class Command {

	private Object state = null;
	private String info = "this is a commands not been used!";
	public Object getState() {
		return state;
	}

	public void setState(Object state) {
		this.state = state;
	}
	
	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Object execute(){
		System.out.println("command to be executed!  " + state);
		this.info = "this command has been executed!";
		return "over";
	}

	@Override
	public String toString() {
		return "Command [state=" + state + ", info=" + info + "]";
	}
	
}	
